package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entity.Category;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface CategoryMapper extends BaseMapper<Category> {
    @Select("SELECT c.* FROM tb_category c,tb_category_brand cb where c.id=cb.category_id and cb.brand_id=#{bid}")
    List<Category> queryByBid(Long bid);
}